package cn.kgc.springbootday0102.controller;

import cn.kgc.springbootday0102.service.HelloSpringbootService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author 课工场
 * @date 2024/5/24
 * @description
 */
@RestController
@RequestMapping("hello")
public class HelloSpringbootController {

    @Resource
    private HelloSpringbootService helloSpringbootService;

    @RequestMapping("m1")
    public Map<String, Object> method1(Integer id) {
       return helloSpringbootService.method1(id);
    }

}
